package cn.com.shopec.erp.multiChannel.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.taobao.api.domain.Trade;

/**
 * 淘宝多渠道对接Service
 * @author Administrator
 *
 */
public interface ITaoBaoService {
	
	/**
	 * 获取淘宝授权后accessCode的值
	 * @param request
	 * @param response
	 * @return
	 */
	public boolean getAccessTokenByCode(String code) throws Exception;
	
	/**
	 * 同步淘宝订单信息
	 * @throws Exception
	 */
	public String syncTBOrderInfo(String startDate,String endDate,String queryType) throws Exception;
	
	/**
	 * 转换并保存渠道订单信息
	 * @param orderInfos
	 * @return
	 */
	public boolean convertAndSaveOrderInfo(List<Trade> trades);
}
